
<?php


  $id = $_GET['id']; //获取地址栏中参数名是id的值


  //调用删除函数
  $_rows = del($GLOBALS['c'],$id);


  if($_rows>0){
     echo"<script>alert('删除成功');location.href='index.php?c=news&a=list&admin=1'</script>";die;
  }else{
     echo"<script>alert('删除失败');history.go(-1)</script>";die;
  }



?>

